package messagesPacks;

import messagesPacks.GenericMessage.msgType;
import Entity.Book;
import Entity.BookCopy;

/**
 * This class representing a LibrarianAddCopyMessage
 * Date: 30/12/2012
 * @author Tali Pisarev
 *
 */

public class LibrarianAddCopyMessage extends GenericMessage
{

		 private static final long serialVersionUID = 1L;
			
		    /**BookCopy is entity that includes all the details of copy*/
		    private  BookCopy bookCopy;
		    /**save the Query result*/
			private int queryAddCopyResult=-10 ;
			
///*************************************************************************************************************
			 
/**
* Constructor the LibrarianAddBookMessage with default values
*/				

			public LibrarianAddCopyMessage()
			{
				this.type = msgType.LibrarianAddCopyMSG; 
				this.bookCopy= new BookCopy();
			}
//====================================================================================	
//	      Getters & Setters
//
			public BookCopy getCopy()
			{
				return this.bookCopy;
			}

			public void setCopy(BookCopy bookCopy) 
			{
				this.bookCopy = bookCopy;
			}

			public int getQueryLibAddCopyResult()
			{
				return queryAddCopyResult;
			}


			public void setQueryLibAddCopyResult (int queryAddBookResult)
			{
				this.queryAddCopyResult = queryAddBookResult;
			}
	}

